package com.example.mtblog.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class demo {

    @GetMapping("/hello")
    public String sayHello(){
        return "欢迎来到MTBLOG";
    }

    @PostMapping("/hello_")
    public String s(){
        return "欢迎来到MTBLOG";
    }

    @GetMapping("/test")
    public String test(){
        return "test";
    }

    @GetMapping("/user")
    public String user(){
        return "user";
    }

    @GetMapping("/admin")
    public String admin(){
        return "admin";
    }


}


